package com.example.onlineeducation.adapter

import android.view.View
import com.example.onlineeducation.R
import com.example.onlineeducation.data.entity.NoticeEntity
import com.example.onlineeducation.widget.marquee.MarqueeAdapter
import com.example.onlineeducation.widget.marquee.MarqueeTextView

class NoticeAdapter : MarqueeAdapter<NoticeEntity>() {
    override fun onBind(view: View?, position: Int, data: NoticeEntity) {
        val itemNews: MarqueeTextView = view!!.findViewById(R.id.tvNotice)
        itemNews.text = data.name
    }

}
